<html> 
<head> 
<script src="lib/air/AIRAliases.js" language="JavaScript" type="text/javascript"></script> 
<script language="JavaScript" type="text/javascript"> 
    var iconLoadComplete = function(event) 
    { 
        air.NativeApplication.nativeApplication.icon.bitmaps = [event.target.content.bitmapData]; 
    } 
     
    air.NativeApplication.nativeApplication.autoExit = false; 
    var iconLoad = new air.Loader(); 
    var iconMenu = new air.NativeMenu(); 
    var exitCommand = iconMenu.addItem(new air.NativeMenuItem("Exit")); 
    exitCommand.addEventListener(air.Event.SELECT,function(event){ 
            air.NativeApplication.nativeApplication.icon.bitmaps = []; 
            air.NativeApplication.nativeApplication.exit(); 
    }); 
 
    if (air.NativeApplication.supportsSystemTrayIcon) { 
        air.NativeApplication.nativeApplication.autoExit = false; 
        iconLoad.contentLoaderInfo.addEventListener(air.Event.COMPLETE,iconLoadComplete); 
        iconLoad.load(new air.URLRequest("icons/AIRApp_16.png")); 
        air.NativeApplication.nativeApplication.icon.tooltip = "AIR application"; 
        air.NativeApplication.nativeApplication.icon.menu = iconMenu; 
    } 
 
    if (air.NativeApplication.supportsDockIcon) { 
        iconLoad.contentLoaderInfo.addEventListener(air.Event.COMPLETE,iconLoadComplete); 
        iconLoad.load(new air.URLRequest("icons/AIRApp_128.png")); 
        air.NativeApplication.nativeApplication.icon.menu = iconMenu; 
    } 
 var options = new air.NativeWindowInitOptions();
 
	options.type = air.NativeWindowType.LIGHTWEIGHT;
	options.transparent = true;
	options.systemChrome = air.NativeWindowSystemChrome.NONE;
	
	var bounds = null;
	var screen = air.Screen.mainScreen.visibleBounds;
	 
	bounds = new air.Rectangle(
		screen.width - WINDOW_WIDTH - 10,
		screen.height - WINDOW_HEIGHT - 10,
		WINDOW_WIDTH,
		WINDOW_HEIGHT
	);
	var notification = air.HTMLLoader.createRootWindow( 
	true, 
	options, 
	false, 
	bounds 
);

notification.paintsDefaultBackground = false;
notification.stage.nativeWindow.alwaysInFront = true;
notification.navigateInSystemBrowser = true;

notification.load( new air.URLRequest( NOTIFY_SOURCE ) );

</script> 
</head> 
<body> 
oia
</body> 
</html>
